/**
 *  Copyright 2010 ShenYang voole Co. Ltd.
 *  All right reserved. 
 */
package cn.piaoyi.service;

import java.util.List;

import cn.piaoyi.bean.Admin;
import cn.piaoyi.bean.OrderGoods;
import cn.piaoyi.exception.PiaoyiException;

/**
 * 功能描述:订单物品事务接口
 *
 * 创建日期 Apr 10, 2010
 *
 * @author zhangbaochao
 *
 * @version 1.0
 *
 */
public interface OrderGoodsService {
	/**
	 * 保存OrderGoods对象
	 * 
	 * @param orderGoods
	 * 			OrderGoods对象
	 * @return OrderGoods
	 * 			OrderGoods对象
	 */
	public OrderGoods createOrderGoods(OrderGoods orderGoods) throws PiaoyiException;
	
	
	/**
	 * 保存OrderGoods对象
	 * 
	 * @param orderGoods
	 * 			OrderGoods对象
	 * @return OrderGoods
	 * 			OrderGoods对象
	 */
	public OrderGoods updateOrderGoods(OrderGoods orderGoods) throws PiaoyiException;
	
	/**
	 * 根据主键ID获取OrderGoods对象
	 * 
	 * @param id
	 * 			主键ID
	 * @return OrderGoods
	 * 			OrderGoods对象
	 */
	public OrderGoods findOrderGoodsById(long id);
	
	/**
	 * 获取OrderGoods列表
	 * 
	 * @param orderId
	 * 			long
	 * @param orderby
	 *            String
	 * @param ascOrDesc
	 *            int
	 * @return List
	 * 			OrderGoods对象列表
	 */
	public List findOrderGoodses(long orderId,String orderby, int ascOrDesc);
	
	/**
	 * 删除OrderGoods对象
	 */
	public void removeOrderGoodsById(long id);
}
